import request from '@/utils/request'

export function page(data) {
  return request({
    url: '/product/page',
    method: 'post',
    data
  })
}

export function update(data){
    return request.post("product/update",data);
}

export function addProduct(data){
   return  request.post("product/insert",data);
}


export function drop(deviceId){
  return request({
    url:"product/delete/"+productId,
    method:"get",
  });
}